<?php
namespace modules\admin\action\show;

use library\BaseAction;
use idea\ap\Ap;
use idea\ap\UserIdentity;
use helper\Util;

/**
 * LogoutAction class file
 * 退出登录
 * @author 宋欢 <iphper@yeah.net>
 * @version $Id: LoginAction.php 1 2013-02-08 00:48:06Z huan.song $
 * @package modules.admin.action.show
 * @since 1.0
 */
class LogoutAction extends BaseAction
{
	/**
	 * @var boolean 是否需要检查用户的登录状态：不检查
	 */
	protected $_checkLogin = false;
	
	/**
	 * (non-PHPdoc)
	 * @see idea\mvc\interfaces.Action::run()
	 */
	public function run()
	{
		UserIdentity::unregisterID();
		Ap::getSession()->clear();
		Util::forward('index', 'show', 'system');
	}
}
